<%= error_messages_for 'conversation' %>

<!--[form:conversation]-->
<p><label for="conversation_contacted_on">Päivämäärä</label><br/>
<%= date_select 'conversation', 'contacted_on'  %></p>

<p><label for="conversation_conversation_type">Laji</label><br/>
<%= select 'conversation', 'conversation_type', %w{ puhelu sähköposti kokous }  %></p>

<p><label for="conversation_contact_id">Asiakkaan yhteyshenkilö</label><br/>
<%= collection_select 'conversation', 'contact_id', customer.contacts, :id, :full_name, {:include_blank => 'Ei yhteyshenkilöä' }  %></p>

<p><label for="conversation_content">Asia</label><br/>
<%=fckeditor_textarea( 'conversation', 'content', :ajax => true, :toolbarSet => 'Basic', :height => '300px') %>
</p>

<p><%= check_box 'conversation', 'follow_up' %><label for="conversation_follow_up">Aseta muistutus</label></p>

<div id="follow_up_details">
<p><label for="conversation_follow_up_date">Muistutus päivämäärä</label><br/>
<%= date_select 'conversation', 'follow_up_date'  %></p>

<p><label for="conversation_follow_up_text">Muistutus teksti</label><br/>
<%=fckeditor_textarea( 'conversation', 'follow_up_text', :ajax => true, :toolbarSet => 'Basic', :height => '300px') %>
</p>
</div>

<script type="text/javascript">
	Event.addBehavior({
		'#conversation_follow_up:click' : function(e){
			$('follow_up_details').toggle();
		},
		'#follow_up_details' : function(e){
			this.hide();
		}	
	});
</script>

<!--[eoform:conversation]-->

